package com.ronz.linkedlist.util;

/**
 * @Description 这是一个水浒英雄结点，用于双向链表
 * @Author Ronz
 * @Date 2020/12/24 10:39
 * @Version 1.0
 */
public class DoubleHeroNode {
    public int no;             // 本结点数据
    public String name;
    public String nickName;
    public DoubleHeroNode next;       // 指向下一个结点
    public DoubleHeroNode pre;         // 指向前一个结点

    public DoubleHeroNode(int no, String name, String nickName) {
        this.no = no;
        this.name = name;
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return "DoubleHeroNode{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", nickName='" + nickName + '\'' +
                '}';
    }
}
